package com.kxr.literetrofit;

import android.app.Application;

import com.kxr.literetrofit.network.HttpManager;

public class RetrofitApplication extends Application {
    private static RetrofitApplication sInstance;
    @Override
    public void onCreate() {
        super.onCreate();
        if (sInstance == null) {
            sInstance = this;
        }
        //初始化网络框架
        HttpManager.getInstance().init("");
    }

    public static RetrofitApplication getsInstance(){
        if (sInstance == null){
            sInstance = new RetrofitApplication();
            sInstance.onCreate();
        }
        return sInstance;
    }
}
